package com.bothin.experiment4.controller;


import com.bothin.experiment4.model.Employee;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**
 * Created by bothin
 * At 2019/12/12 9:36
 * Description:
 */
@Controller
public class TestController {

    @RequestMapping("/index")
    public ModelAndView index() {
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

    @RequestMapping("/to/login")
    public ModelAndView to_login(){
        return new ModelAndView("login");
    }

    @RequestMapping("/homepage")
    public ModelAndView console() {
        ModelAndView mv = new ModelAndView("/home/homepage");
        return mv;
    }



}
